<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>

<body>
    <script src="../lib/jquery-1.10.2.js"></script>
    <script src="../dist/dialog.js"></script>

    <script>
        var d = dialog({
            title: '消息',
            content: '风吹起的青色衣衫，夕阳里的温暖容颜，你比以前更加美丽，像盛开的花<br>——许巍《难忘的一天》',
            button: [{
                value: '同意',
                callback: function() {
                    this
                        .content('你同意了');
                    return false;
                },
                autofocus: true
            }, {
                value: '不同意',
                callback: function() {
                    alert('你不同意')
                }
            }, {
                id: 'button-disabled',
                value: '无效按钮',
                disabled: true
            }, {
                value: '关闭我'
            }]
        });

        d.show();
    </script>
</body>

</html>